Ext.onReady(function(){
	Ext.define('person',{
		extend:'Ext.data.Model',
		fields:[
			'name','age'
		]/*,
		proxy:{
			type:'memory'
		}*/
	});
	
	var s = new Ext.data.Store({
		model:'person',
		/*data:[
			{name:'JJ',age:1},
			{name:'JonSnow',age:2}
		],*/
		proxy:{
			type:'ajax',
			url:'person.jsp',
			reader:{
				type:'json'
			}
		}
		//autoLoad:true
	});
	
	/*s.each(function(model){
		alert(model.get('name'));
	});*/
	
	s.load(function(records, operation, success){
		Ext.Array.each(records,function(model){
			alert(model.get('name'));
		});
	});
});